const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.userInfo.staffPhoto,
  name: state => state.user.userInfo.username, // 注意大小写
  //   把userId全局新建一个getters，目的是方便获取
  userId: state => state.user.userInfo.userId,
  routes: state => state.user.routes, // 把vuex的路由表新建快捷访问
  departmentName: state => state.user.userInfo.departmentName, // 组织架构名称
  company: state => state.user.userInfo.company // 公司名称
}
// 快捷访问
export default getters
